package com.atkxp.sys.service.impl;

import com.atkxp.sys.entity.OperLog;
import com.atkxp.sys.mapper.OperLogMapper;
import com.atkxp.sys.service.IOperLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author kxp
 * @since 2023-10-09
 */
@Service
public class OperLogServiceImpl extends ServiceImpl<OperLogMapper, OperLog> implements IOperLogService {

    @Override
    public void insertOperlog(OperLog operLog) {
        operLog.setOperTime(LocalDateTime.now());
        this.baseMapper.insert(operLog);
    }
}
